package com.qfedu.service.impl;

import com.qfedu.dao.AnonymityDao;
import com.qfedu.entity.Anonymity;
import com.qfedu.service.AnonymityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnonymityServiceImpl implements AnonymityService {

    @Autowired
    private AnonymityDao anonymityDao;

    @Override
    public List<Anonymity> findAllAnonymity() {
        return anonymityDao.queryAllAnonymity();
    }

    @Override
    public int add(Anonymity anonymity) {
        return anonymityDao.add(anonymity);
    }
}
